package com.zhj.product.converter;

import com.zhj.product.entity.pojo.Carousel;
import com.zhj.product.entity.dto.CarouselDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 轮播转换器
 */
@Mapper
public interface CarouselConverter {

    CarouselConverter INSTANCE = Mappers.getMapper(CarouselConverter.class);

    CarouselDTO carouseToDto(Carousel carousel);

    List<CarouselDTO> carouseToDto(List<Carousel> carousel);

}
